<?php


namespace app\manage\controller;


use app\common\model\UserRoles;

class Shopowner extends Base
{
    public function getModel()
    {
        return (new \app\common\model\Users());
    }
    public function where()
    {
        $where = [
            ["type","eq",1]
        ];
        return $where;
    }
    public function addAttach($info)
    {
        $roles = UserRoles::field('id,name')->order('id ASC')->select();
        $stores = \app\common\model\Stores::field('id,name')->order('id ASC')->select();
        $this->assign('roles', $roles);
        $this->assign('stores', $stores);
    }
}